package cn.iocoder.yudao.module.product.sku.vo;

import cn.iocoder.yudao.module.api.product.sku.dto.PriceRespDTO;
import cn.iocoder.yudao.module.api.product.sku.dto.ProductPropertyValueRespDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "用户 APP - 产品 SKU Response VO")
@Data
public class AppProductSkuRespVO extends PriceRespDTO {

    @Schema(description = "产品属性数组", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<ProductPropertyValueRespDTO> properties;

    @Schema(description = "图片地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.example.com/xx.png")
    private String picUrl;

    @Schema(description = "库存", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer stock;

    @Schema(description = "产品重量", example = "1") // 单位：kg 千克
    private Double weight;

    @Schema(description = "产品体积", example = "1024") // 单位：m^3 平米
    private Double volume;

}
